import 'package:animated_icon_button/animated_icon_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter_framework/assets/r_icon.dart';

class AnimatedIconBtn extends StatefulWidget {
  const AnimatedIconBtn({super.key});

  @override
  _AnimatedIconBtnState createState() => _AnimatedIconBtnState();
}

class _AnimatedIconBtnState extends State<AnimatedIconBtn> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('模板'),
      ),
      body: Center(
        child: Column(children: [
          AnimatedIconButton(
            onPressed: () => print('all icons pressed'),
            icons: [
              AnimatedIconItem(icon: Icon(AppIconR.home,color: Colors.red,),),
              AnimatedIconItem(icon: Icon(Icons.close),),
              AnimatedIconItem(icon: Icon(Icons.close),),

            ],
          ),
        ],)
      ),
    );
  }
}
